package com.batchaps.menu;

import java.io.IOException;

import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;

import com.batchaps.gameentity.MenuFuntionItem;

public class HelpMenu extends Menu{

	MenuFuntionItem back;
	Image imgChar;
	public HelpMenu(int width , int height)
	{
		Width = width;
		Height = height;
		back = new MenuFuntionItem("/back.png", 0 , height-40, 40, 40, "", 0, 0, true);
		
		try {
			imgChar = Image.createImage("/menu/helpchar.png");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public int IsClick(int x, int y) {
		// TODO Auto-generated method stub
		if(back.IsClick(x, y))
			return 1;
		else
			return 0;
	}

	public void Update() {
		// TODO Auto-generated method stub
		
	}

	int size = 100;
	int d = 25;
	public void Draw(Graphics g) {
		// TODO Auto-generated method stub
		g.drawImage(imgChar, 74 , 114 , 0);
        
        back.Draw(g, 0);
	}

}
